package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Rodgers
 * @Date 2022/3/8 10:35
 */

public interface EmployeeService {

    //登录
    R<Employee> login(Employee employee);

    //新增
    boolean save(Employee employee);

    //分页查询
    Page<Employee> findByPage(Integer page, Integer pageSize, String name);

    //修改
    boolean update(Employee employee);

    //通过id查找
    R<Employee> selectById(Long id);
}
